//
//  Helper.swift
//  RxSwift_Practice
//
//  Created by 李永彬 on 2020/3/31.
//  Copyright © 2020 李永彬. All rights reserved.
//

import Foundation
class Helper: NSObject,testProtocol {
    override init() {
        super.init()
    }
    
    func test() {
        
    }
}
public func delay(_ delay: Double, closure:@escaping () -> Void) {
    DispatchQueue.main.asyncAfter(deadline: .now() + delay) {
        closure()
    }
}

func myPrint<T>(type:T) {
    let item = MemoryLayout<T>.self
    print(String(describing: T.self) + "  size:\(item.size)" + "  stride:\(item.stride)" + "  alignment:\(item.alignment)")
}

enum ShowSize<T> {
    static func show() {

        let item = MemoryLayout<T>.self
        print(String(describing: T.self) + "  " + "size:\(item.size)" + "  " + "stride:\(item.stride)" + "  " + "alignment:\(item.alignment)")
    }
}

struct Sleep1 {
    var index:UInt16
    var time:UInt32
}


